package com.szit.adminserver.server;

import com.szit.util.Result;
import com.szit.util.vo.AdminRoleInfo;
import com.szit.util.vo.AdminRolePermissionInfo;

/**
 * @author wyler
 * @date 2020/10/09
 * 角色服务类接口
 */
public interface AdminRoleServer {

    /**
     * 添加角色
     * @param adminRoleInfo
     * @return
     */
    Result insertAdminRole(AdminRoleInfo adminRoleInfo);

    /**
     * 删除角色
     * @param token
     * @param roleId
     * @return
     */
    Result deleteRoleById(String token, Integer roleId);

    /**
     * 更新角色
     * @param adminRoleInfo
     * @return
     */
    Result updateRoleById(AdminRoleInfo adminRoleInfo);

    /**
     * 查找角色列表
     * @param token
     * @param pageNum
     * @param pageSize
     * @return
     */
    Result selectAllAdminRole(String token,Integer pageNum,Integer pageSize);

    /**
     * 更改角色权限
     * @param adminRolePermissionInfo
     * @return
     */
    Result updateRolePermissionByRoleId(AdminRolePermissionInfo adminRolePermissionInfo);

    /**
     * 删除角色权限
     * @param adminRolePermissionInfo
     * @return
     */
    Result deleteAdminRolePermission(AdminRolePermissionInfo adminRolePermissionInfo);
}
